/* process.env.NODE_ENV设置生产环境模式 */
/*JAVA app.java.shzysoft.com  NET dotnet.shzysoft.com*/
// #ifndef MP
const baseURL = process.env.NODE_ENV === "production" ?
	 //"http://192.168.0.19:30005" : "http://192.168.0.19:30005" // 接口前缀
	"http://192.168.0.19:30000" : "http://192.168.0.19:30000" // 接口前缀
	// "http://localhost:3000/dev" : "http://localhost:3000/dev" // 接口前缀
	//"http://106.14.191.63:80" : "http://106.14.191.63:80" // 接口前缀
	// "https://www.q1soft.com" : "https://www.q1soft.com" // 外网
const define = {
	baseURL: baseURL,
	// webSocketUrl: process.env.NODE_ENV === "production" ? "wss://106.14.191.63:80/websocket" :
	// 	"ws://106.14.191.63:80/api/message/websocket",
	// comUploadUrl: baseURL + '/api/file/Uploader/',
	// timeout: process.env.NODE_ENV === 'production' ? 1000000 : 1000000,
	// report: process.env.NODE_ENV === 'development' ? 'http://106.14.191.63:80' : baseURL + '/Report'
	webSocketUrl: process.env.NODE_ENV === "production" ? "ws://192.168.0.19:30000/websocket" :
		"ws://192.168.0.19:30000/websocket",
	// webSocketUrl: process.env.NODE_ENV === "production" ? "wss://www.q1soft.com/websocket" :
	// 	"wss://www.q1soft.com/websocket",
	comUploadUrl: baseURL + '/api/file/Uploader/',
	timeout: process.env.NODE_ENV === 'production' ? 1000000 : 1000000,
	report: process.env.NODE_ENV === 'development' ? 'http://192.168.0.19:30000' : baseURL + '/Report'
}
// #endif

// #ifdef MP
//const baseURL = "http://106.14.191.63:80" // "https://app.java.shzysoft.com" 
const baseURL = "http://192.168.0.19:30000" // "https://app.java.shzysoft.com" 
const define = {
	baseURL: baseURL,
	//webSocketUrl: "ws://106.14.191.63:80/api/message/websocket", //"ws://app.java.shzysoft.com/api/message/websocket"
	webSocketUrl: "ws://192.168.0.19:30000/api/message/websocket", //"ws://app.java.shzysoft.com/api/message/websocket"
	comUploadUrl: baseURL + '/api/file/Uploader/',
	timeout: process.env.NODE_ENV === 'production' ? 1000000 : 1000000,
	report: baseURL + '/Report'
}
// #endif
export default define
